//
//  hyRecommendController.m
//  anjuke
//
//  Created by jim Yao on 16/1/1.
//  Copyright © 2016年 anjuke. All rights reserved.
//

#import "hyRecommendController.h"
#define hyBackcolor
@interface hyRecommendController ()

@end

@implementation hyRecommendController

- (void)viewDidLoad {
    [super viewDidLoad];
    [self setNav];
    

    self.view.backgroundColor = [UIColor greenColor];
}


- (void)setNav{
    
    NSArray *array = @[@"二手房",@"租房",@"新房"];
    
    UISegmentedControl *seg = [[UISegmentedControl alloc] initWithItems:array];
    seg.tintColor = [UIColor colorWithRed:94/255.0 green:166/255.0 blue:0 alpha:1];
    NSDictionary *dicNormal=@{
                        NSForegroundColorAttributeName:[UIColor blackColor]
                        };
    [seg setTitleTextAttributes:dicNormal forState:UIControlStateNormal];
    self.navigationItem.titleView = seg;

    
    }

@end
